package com.testjpa.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 作者: LCG
 * 日期: 2020/5/22 17:42
 * 描述:
 */
@RefreshScope //刷新配置
@Data
@ConfigurationProperties(prefix = "com.zbf")
@Component
public class MyConfigProperties {

    private String username;

    private String password;

}
